using System;
using System.Collections;
using System.Collections.Generic;
using Fantasy;
using UnityEngine;

public class Entry : MonoBehaviour
{
    private Scene scene;
    void Start()
    {
        DontDestroyOnLoad(gameObject);
        scene =Fantasy.Entry.Initialize();
        new Fantasy.AssemblyHelper().LoadHotfixDll();
        Fantasy.EventSystem.Instance.Publish(new Fantasy.OnAppStart
        {
            ClientScene = scene
        });
    }

    private void OnDisable()
    {
        scene?.Dispose();
    }
}
